package com.deli.springboot.mapper;

import com.deli.springboot.entity.BorrowHistory;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository(value="BorrowHistoryMapper")
public interface BorrowHistoryMapper {

    /**
     * 根据条件查询浏览历史
     * @param borrowHistory
     * @return
     */
    public List<BorrowHistory> findByExample(BorrowHistory borrowHistory);

    /**
     * 修改浏览状态
     * @param bookId
     * @return
     */
    public int updateStatus(Long bookId);

}
